const Koa = require('koa');
const app = new Koa();
//加入自动注册route脚本
const routing = require('./routers/index')



//将自动注册route脚本挂载到app上
routing(app)

app.listen(3000, () => {
    console.log("服务器启动在http://127.0.0.1:3000")
})